Imports Microsoft.VisualBasic
'Imports DotNetPM.Business.Information
Imports System.Web.Security

Namespace DotNetPM.Web

    Public Class Helper

        'Public Shared Function GetTitleOfCourtesy(ByVal ind As Byte) As String
        '    Return UserInformationODS.GetTitleOfCourtesy(ind)
        'End Function

        Public Shared Function GetPhoneNumber(ByVal phone As String) As String
            Return IIf(String.IsNullOrEmpty(phone), "N/A", Format(CDbl(phone), "###-###-####"))
        End Function

        Public Shared Function GetRoles(ByVal userName As String) As String
            Dim RoleArray As String() = Roles.GetRolesForUser(userName)
            Return String.Join(", ", RoleArray)
        End Function

    End Class

End Namespace


